package com.csap.framework.apidoc.admin.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.apidoc.admin.entity.ApiDocEntity;
import com.csap.mybatisplus.extension.activerecord.CloneModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 文档管理信息
 * </p>
 *
 * @author
 * @dateTime
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "文档管理信息", value = "apiDoc对象")
@Description(value = "文档管理信息Model")
public class ApiDocModel extends CloneModel<ApiDocModel, ApiDocEntity> {
    @ApiModelProperty(description = "主键", value = "主键", forceRep = true)
    private Long id;
    @ApiModelProperty(description = "创建时间", value = "创建时间", forceRep = true)
    private LocalDateTime createTime;
    @ApiModelProperty(description = "修改时间", value = "修改时间", forceRep = true)
    private LocalDateTime updateTime;
    @ApiModelProperty(description = "环境ID", value = "环境ID", forceReq = true)
    private Long envId;
    @ApiModelProperty(description = "环境名称", value = "环境名称", forceReq = true, forceRep = true)
    private String envName;
    @ApiModelProperty(description = "项目ID", value = "项目ID", forceReq = true)
    private Long projectId;
    @ApiModelProperty(description = "项目名称", value = "项目名称", forceReq = true, forceRep = true)
    private String projectName;
    @ApiModelProperty(description = "文档名称", value = "文档名称", forceReq = true, forceRep = true)
    private String name;
    @ApiModelProperty(description = "mock地址", value = "mock地址", forceReq = true, forceRep = true)
    private String mockUrl;
    @ApiModelProperty(description = "创建人", value = "创建人", forceRep = true)
    private String createName;
    @ApiModelProperty(description = "文档路径", value = "文档路径", forceReq = true, forceRep = true)
    private String path;
    @ApiModelProperty(description = "icon", value = "icon", forceReq = true, forceRep = true)
    private String icon;
    @ApiModelProperty(description = "详细描述信息", value = "详细描述信息", forceReq = true, forceRep = true)
    private String descr;
    @ApiModelProperty(description = "摘要", value = "摘要", forceReq = true, forceRep = true)
    private String md;
    @ApiModelProperty(description = "文档访问的URL", value = "文档访问的URL", forceReq = true, forceRep = true)
    private String link;
    @ApiModelProperty(description = "路径信息", value = "路径信息", forceRep = true, forceReq = true)
    private ApiDocPathModel pathModel;
}
